<?php

session_start();
include_once( 'C:\wamp\www\trunk/chenyong/config.php' );
include_once( DIR_SYSTEM.'/weibolib/weibooauth.php' );



$o = new WeiboOAuth( WB_AKEY , WB_SKEY , $_SESSION['keys']['oauth_token'] , $_SESSION['keys']['oauth_token_secret']  );

$last_key = $o->getAccessToken(  $_REQUEST['oauth_verifier'] ) ;

$_SESSION['last_key'] = $last_key;

header('Location: http://localhost/trunk/chenyong/index.php?route=page/loginsuccess');


?>
